package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Goods;
import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import com.atguigu.jxc.vo.GoodVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PurchaseListGoodsDao {



    List<Map<String,Object>> list(@Param("purchaseNumber") String purchaseNumber,
                                  @Param("supplierId") Integer supplierId,
                                  @Param("state") Integer state,
                                  @Param("sTime") String sTime,
                                  @Param("eTime") String eTime);

    List<Map<String, Object>> goodsList(Integer purchaseListId);

    void delete(Integer purchaseListId);

    void deleteGoodsByPurchaseListId(Integer purchaseListId);

    void updateState(Integer purchaseListId);

    List<GoodVo> count(@Param("sTime") String sTime, @Param("eTime") String eTime, @Param("goodsTypeId") Integer goodsTypeId, @Param("codeOrName") String codeOrName);


    void savePurchaseList(PurchaseList purchaseList);

    void savePurchaseListGoods(PurchaseListGoods purchaseListGoods);
}
